<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{scxkForm.bundleName}"/>
    <head>
        <title>#{text['scxkDetail.title']}</title>
        <meta name="heading" content="#{text['scxkDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="scxkForm">

<h:form id="scxkForm" onsubmit="return validateScxkForm(this)">
 <h:inputHidden value="#{scxkForm.scxk.id}" id="id"/>
 <h:inputHidden value="#{scxkForm.scxk.version}" id="version"/>
    <h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{scxkForm.save}" id="save" styleClass="button"/>

        <c:if test="${not empty scxkForm.scxk.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{scxkForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('Scxk')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
    </h:panelGroup>
<h:panelGrid columns="6">
    <h:outputLabel styleClass="desc" for="cpxh" value="#{text['scxk.cpxh']}"/>
    <t:message for="cpxh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="cpxh" value="#{scxkForm.scxk.cpxh}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="fzjg" value="#{text['scxk.fzjg']}"/>
    <t:message for="fzjg" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="fzjg" value="#{scxkForm.scxk.fzjg}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="gycpmc" value="#{text['scxk.gycpmc']}"/>
    <t:message for="gycpmc" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="gycpmc" value="#{scxkForm.scxk.gycpmc}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="wgjl" value="#{text['scxk.wgjl']}"/>
    <t:message for="wgjl" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="wgjl" value="#{scxkForm.scxk.wgjl}" required="false" maxlength="200">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="xh" value="#{text['scxk.xh']}"/>
    <t:message for="xh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="xh" value="#{scxkForm.scxk.xh}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="yxq" value="#{text['scxk.yxq']}"/>
    <t:message for="yxq" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="yxq" value="#{scxkForm.scxk.yxq}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="zsbh" value="#{text['scxk.zsbh']}"/>
    <t:message for="zsbh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="zsbh" value="#{scxkForm.scxk.zsbh}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="zsmc" value="#{text['scxk.zsmc']}"/>
    <t:message for="zsmc" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="zsmc" value="#{scxkForm.scxk.zsmc}" required="false" maxlength="50">
    </h:inputText>

	<!--
    <h:outputLabel styleClass="desc" for="id" value="#{text['scxk.id']}"/>
    <h:inputText styleClass="text medium" id="id" value="#{scxkForm.scxk.id}" required="true">
        <v:commonsValidator type="required" arg="#{text['scxk.id']}"/>
    </h:inputText>
    <t:message for="id" styleClass="fieldError"/> 
    <h:selectOneMenu value="#{scxkForm.scxk.jbqk}" id="jbqk" required="false" styleClass="select">
        <f:selectItems value="#{scxkForm.scxk.jbqk}"/>
    </h:selectOneMenu>
    <h:outputLabel styleClass="desc" for="operation" value="#{text['scxk.operation']}"/>
    <t:message for="operation" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="operation" value="#{scxkForm.scxk.operation}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="optdate" value="#{text['scxk.optdate']}"/>
    <t:message for="optdate" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="optdate" value="#{scxkForm.scxk.optdate}" required="false" maxlength="23">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="username" value="#{text['scxk.username']}"/>
    <t:message for="username" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="username" value="#{scxkForm.scxk.username}" required="false" maxlength="50">
    </h:inputText>
 	-->
    <h:outputText/><h:outputText/>
</h:panelGrid>
</h:form>

<v:validatorScript functionName="validateScxkForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('scxkForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
